@function getRemNum($rem) {
  @return ($rem /37.5)
}

header {
  margin: getRemNum(24rem) auto 0;
  width: getRemNum(346rem);
  height: getRemNum(34rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 0 getRemNum(16rem) 0 getRemNum(17rem);

  .back {
    height: getRemNum(12.73rem);
    width: getRemNum(12.73rem);
    background: url('https://19jwshow.oss-cn-shenzhen.aliyuncs.com/images/close.png') no-repeat;
    background-size: contain;
  }

  .release {
    background-image: linear-gradient(to right, #4279FD, #89B1FF);
    width: getRemNum(50rem);
    height: getRemNum(26rem);
    color: #fff;
    text-align: center;
    line-height: getRemNum(26rem);
    border-radius: getRemNum(12rem);
    font-size: getRemNum(14rem);
    cursor: pointer;
  }
}

#container {
  height: 100%;
  margin: 0 auto;
  font-family: PingFangSC-Regular, PingFang SC;
  width: getRemNum(346rem);
  box-sizing: border-box;
  padding: getRemNum(6rem) getRemNum(16rem) getRemNum(70rem);

  .addCoverWidth {
    background: none !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .addCover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: getRemNum(120rem);
    min-height: getRemNum(120rem);
    max-height: getRemNum(170rem);
    background: #F5F5F5;
    border-radius: getRemNum(16rem);
    cursor: pointer;
    position: relative;

    img {
      max-width: getRemNum(315rem);
      max-height: getRemNum(170rem);
      border-radius: getRemNum(10rem);
    }

    input {
      position: absolute;
      z-index: 10;
      width: 100%;
      height: 100%;
      top: 0;
      opacity: 0;
    }

    .addCoverIcon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: getRemNum(32.25rem);
      height: getRemNum(32.25rem);
      background: url("https://19jwshow.oss-cn-shenzhen.aliyuncs.com/images/addCover.png") no-repeat center center;
      background-size: contain;
    }

    .cover {
      position: relative;
      z-index: 20;
      display: inline-block;

      span {
        width: getRemNum(22rem);
        height: getRemNum(22rem);
        background: url("https://19jwshow.oss-cn-shenzhen.aliyuncs.com/images/DeleteImages3x.png") no-repeat;
        background-size: contain;
        display: block;
        position: absolute;
        top: getRemNum(8rem);
        right: getRemNum(8rem);
      }
    }
  }

  .addTitle {
    margin-top: getRemNum(10rem);
    border: {
      top: none;
      left: none;
      right: none;
      bottom: #D8D8D8 solid getRemNum(1rem);
    }

    section {
      width: 100%;
      min-height: getRemNum(30rem);
      max-height: getRemNum(600rem);
      padding: getRemNum(3rem);
      outline: none;
      border: none;
      color: #333;
      font-size: getRemNum(18rem);
      line-height: 30px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: bold;
      word-wrap: break-word;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .title-focus::after {
      content: '请输入标题';
      color: #D8D8D8;
    }
  }

  .addText {
    margin-top: getRemNum(24rem);
    min-height: getRemNum(250rem);
    height: 100%;

    .modular-text, .modular-last, .modular-img {
      height: 100%;

      &:nth-child(1) {
        margin: 0;
      }

      .modular-img-box {
        position: relative;
        margin-bottom: getRemNum(21rem);
        display: inline-block;

        span {
          width: getRemNum(22rem);
          height: getRemNum(22rem);
          background: url("https://19jwshow.oss-cn-shenzhen.aliyuncs.com/images/DeleteImages3x.png") no-repeat;
          background-size: contain;
          display: block;
          position: absolute;
          top: getRemNum(8rem);
          right: getRemNum(8rem);
        }

        img {
          width: 100%;
        }
      }


      .focus:after {
        content: '请输入正文';
        color: #D8D8D8;
      }

      .text_box {
        width: 100%;
        min-height: getRemNum(30rem);
        max-height: getRemNum(600rem);
        margin: 0 auto getRemNum(21rem);
        padding: getRemNum(3rem);
        outline: none;
        border: none;
        color: #333;
        font-size: getRemNum(14rem);
        line-height: 30px;
        font-family: PingFangSC-Regular, PingFang SC;
        word-wrap: break-word;
        overflow-x: hidden;
        overflow-y: auto;
      }
    }
  }

  .addOther {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    align-items: center;
    justify-content: space-between;
    width: getRemNum(370rem);
    height: getRemNum(40rem);
    border-top: getRemNum(1rem) solid #F5F5F5;
    border-bottom: getRemNum(1rem) solid #F5F5F5;
    background: #fff;
    font-size: getRemNum(14rem);
    box-sizing: border-box;

    & > section {
      height: getRemNum(40rem);
      line-height: getRemNum(40rem);
    }

    .dropDown {
      display: flex;
      justify-content: center;
      align-items: center;
      width: getRemNum(39rem);
      height: getRemNum(30rem);
      border: {
        top: none;
        right: #999999 solid getRemNum(1rem);
        left: none;
        bottom: none;
      }

      .dropDownIcon {
        transform: rotate(90deg);
        width: getRemNum(30rem);
        height: getRemNum(30rem);
        background: url("https://19jwshow.oss-cn-shenzhen.aliyuncs.com/images/go.png") no-repeat;
        background-size: contain;
      }
    }

    .addInformation {
      width: getRemNum(156rem);
      height: getRemNum(40rem);
      box-sizing: border-box;
      padding: 0 getRemNum(12rem);
      flex: 1;
      overflow: auto;

      & > section {
        width: 200%;
      }

      & > section > section {
        display: inline;
        width: getRemNum(68rem);
      }

      input {
        width: getRemNum(80rem);
        height: getRemNum(34rem);
        background: #F5F5F5;
        border: none;
        outline: none;
        border-radius: getRemNum(8rem);
        padding-left: getRemNum(6rem);
        margin-right: getRemNum(8rem);
        box-sizing: border-box;
      }

      .labelInput {
        color: #89B1FF;
      }

      .addressInput {
        color: #999;
      }

      .label {
        margin-right: getRemNum(4rem);
        color: #89B1FF;
      }

      .address {
        font-size: getRemNum(14rem);
        font-family: PingFangSC-Regular, PingFang SC;
        color: #999999;
        margin-left: getRemNum(8rem);
      }

      .addLabel {
        color: #89B1FF;
      }

      .addAddress {
        margin-left: getRemNum(8rem);
        color: #999999;
      }
    }

    .addImages {
      position: relative;
      margin-right: getRemNum(18rem);
      width: getRemNum(26.84rem);
      height: getRemNum(22.71rem);

      input {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200%;
        height: 200%;
        opacity: 0;
      }

      .addImagesIcon {
        width: getRemNum(26.84rem);
        height: getRemNum(22.71rem);
        background: url("https://19jwshow.oss-cn-shenzhen.aliyuncs.com/images/addImages.png") no-repeat;
        background-size: contain;
      }
    }
  }
}


.exit-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
  z-index: 100;

  & > section {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: getRemNum(271rem);
    height: getRemNum(175rem);
    border-radius: getRemNum(12rem);
    background: #fff;
    overflow: hidden;

    .exit-header {
      height: getRemNum(125rem);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: getRemNum(18rem);
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: bold;
      color: #161516;
      line-height: 17px;
    }

    .exit-footer {
      height: getRemNum(50rem);
      background: #F5F5F5;
      display: flex;
      justify-content: flex-end;
      align-items: center;

      button {
        width: getRemNum(52rem);
        height: getRemNum(34rem);
        border-radius: getRemNum(4rem);
        border: none;
        font-size: getRemNum(14rem);
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: bold;
        color: #FFFFFF;
        line-height: 20px;
        margin-right: getRemNum(12rem);
      }

      & > button:nth-child(1) {
        background: linear-gradient(135deg, #4279FD 0%, #89B1FF 100%);
      }

      & > button:nth-child(2) {
        background: #D8D8D8;
      }
    }
  }
}